package com.example.demo.mapper;

import com.example.demo.pojo.Authority;
import com.example.demo.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface UserMapper {

    @Select("select * from user_ where username = #{username}")
    User findUserByName(String username);

    Authority findAuthorityById(int id);
}
